package com.hit.eduService.client;

import com.hit.commonUtils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name="service-vod",fallback = VodFileDegradeFeignClient.class)
public interface VodClient {

    //定义调用的方法路径
    //调用service-vod服务中的删除视频方法
    @DeleteMapping("/eduVod/video/removeVideo/{id}")
    public R removeVideo(@PathVariable("id") String id);

    //传入视频id构成的List 删除多个视频
    @DeleteMapping("/eduVod/video/delete-batch")
    public R deleteBatch(@RequestParam("videoList") List<String> videoList);
}
